from api.dashboard import api as dashboard_api
from api.users import api as user_api
from api.websites import api as website_api
from api.categories import api as category_api
from api.suggestions import api as suggestion_api
from api.logs import api as log_api
from api.images import api as image_api
from api.auth import api as auth

def register_api_bp(app):
    app.register_blueprint(dashboard_api, url_prefix='/api/dashboard')
    app.register_blueprint(user_api, url_prefix='/api/users')
    app.register_blueprint(website_api, url_prefix='/api/websites')
    app.register_blueprint(category_api, url_prefix='/api/categories')
    app.register_blueprint(suggestion_api, url_prefix='/api/suggestions')
    app.register_blueprint(log_api, url_prefix='/api/logs')
    app.register_blueprint(image_api, url_prefix='/api/images')
    app.register_blueprint(auth, url_prefix='/api/auth')
